package ioc05;

import lombok.Data;

/**
 * Author：汤小洋
 * Date：2023-07-04 10:33
 * Description：<描述>
 */
@Data
public class SpringBean {

    {
        System.out.println("初始化块。。。。");
    }

    private String name;

    public SpringBean() {
        System.out.println("实例化。。。。");
    }

    public void setName(String name) {
        System.out.println("装配name。。。。");
        this.name = name;
    }

    public void init(){
        System.out.println("初始化。。。。。");
        this.name = this.name.toUpperCase();
    }

    public void destroy(){
        System.out.println("销毁。。。。。");
    }
}
